package com.ctgu.edu.service.impl;

import com.ctgu.edu.dao.SeekerMapper;
import com.ctgu.edu.pojo.Seeker;
import com.ctgu.edu.service.SeekerService;
import org.springframework.stereotype.Service;

@Service
public class SeekerServiceImpl implements SeekerService {

    //此处的UsersMapper由spring-service配置文件装配
    private SeekerMapper seekerMapper;

    public void setSeekerMapper(SeekerMapper seekerMapper) {
        this.seekerMapper = seekerMapper;
    }

    public void addSeeker(Seeker seeker) {
        seekerMapper.addSeeker(seeker);
    }

    public void deleteSeekerById(Integer seekerId) {

    }

    public void updateSeeker(Seeker seeker) {
        seekerMapper.updateSeeker(seeker);

    }

    public Seeker getSeekerById(Integer seekerId) {
        return seekerMapper.getSeekerById(seekerId);
    }

    public Seeker getSeekerByAccountId(String recruiterAccountId) {
        return seekerMapper.getSeekerByAccountId(recruiterAccountId);
    }
}
